﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CardInChina.Bussiness.Frontend.Interface;
using CardInChina.Data.Entity.Interface;
using Telerik.Web.Mvc;

namespace CardInChina.Web.Mvc.Controllers
{
    public class OrderController : CICBasicController
    {
        private OrderService os = new OrderService();
     

       
        [GridAction]
        public ActionResult _GetOrdersByCustomer()
        {
            var uid = CustomerInfo.CustomerID;
            var orders = os.GetOrdersByCustomer(uid);
            var model = new GridModel(orders);

            return View(model);
        }

    }
}
